import Article from "@/pages/front/general/article";
import Home from "@/pages/front/general/home";
import NotFount from "@/pages/front/notFount";
import React from "react";
import {BiHome} from "react-icons/bi";
import {GrArticle} from "react-icons/gr";
import {RouteObject} from "react-router-dom";


export type FrontRouterObject = RouteObject & {
    label?: string
    icon?: React.ReactNode
    isTab?: boolean
    children?: FrontRouterObject[]
}


export const frontRoutes: FrontRouterObject[] = [
    {
        label: "page.index",
        icon: <BiHome size={22}/>,
        path: "/home",
        isTab: true,
        element: <Home/>
    },
    {
        label: "page.article",
        icon: <GrArticle size={20}/>,
        path: "/article",
        isTab: true,
        element: <Article/>
    },
    {
        path: "*",
        element: <NotFount/>
    }
]
